package com.guchenbo.study.mvc.servlet31.springmvc;

import org.springframework.web.bind.annotation.ExceptionHandler;

import javax.servlet.http.HttpServletResponse;

//@Component
public class ErrorHandler {

    @ExceptionHandler(value = Exception.class)
    public void error1(HttpServletResponse response){

        response.setStatus(500);
    }

}
